package com.ls.pattern.visitor;

import java.util.List;

/**
 * @author 挥之以墨
 */
public class BusinessReport {

    private List<Employee> employeeList;

    public BusinessReport(List<Employee> employeeList) {
        this.employeeList = employeeList;
    }

    public void showReport(IVisitor visitor) {
        for (Employee employee : employeeList) {
            employee.accept(visitor);
        }
    }

}
